home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-1.iso
/
educate
/
wordy402.zip
/
PATTERN.DOC
< prev
next >
Wrap
Text File
|
1995-12-17
|
4KB
|
86 lines
PATTERN: PATTERN MATCHING UTILITY
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
November - December, 1995
This utility was inspired by a challenge by J.C.
of the crossword-games@mit.edu mailing list.
The PATTERN utility will search the WORD.LST for words matching a given
scheme of letter occurrences. Number the first occurrence of each letter
by a consecutive digit. The first letter of the word is always 1, if the
second letter is the same as the first, it is also a 1, otherwise it is a 2.
Number each succeeding letter the same as the previous letter(s) it matches,
and if it does not match an previous letter, give it the next consecutive
number.
For example, the word tinting may be represented by the pattern
1231234, thusly: 1231234.
The 't', the first letter repeats after two other letters, tinting.
1 1
The 'i', the second letter of its kind, repeats similarly, tinting.
2 2
And so forth. The occurrences of the first letter are denoted as as 1's.
Likewise, occurrences of subsequent letters get numbered consecutively.
More examples:
aa aalii and abacus beckon delight deemed diamond
11 11233 123 121345 12345 123456 122321 1234561
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
To invoke PATTERN, type PATTERN nnnnnn where nnnnnn is a letter pattern, as
shown above. This defaults to searching the file WORD.LST. To search any
*other* file (besides WORD.LST), type PATTERN nnnnnn ffffff, where nnnnnn is
a letter pattern, and fffff is the file name to search.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Typing PATTERN 1221223 gets the following output in the file MATCHED.PAT :
════════════════════════════════════════════════════════════════════════════════
Words fitting the pattern of: 1221223
════════════════════════════════════════════════════════════════════════════════
beebees
booboos
muumuus
weeweed
weewees
********************************************************************************
5 words fit the pattern of 1221223.
PATTERN MATCH util. : M\Cooper, 3425 Chestnut Ridge Rd., Grantsville, MD 21536
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
How is PATTERN useful to the word game player? You, the users of the WORDY
system are herewith challenged to find applications for PATTERN. The best
uses of PATTERN submitted by *registered* WORDY users will result in the
return of the registration fee to those users. Suggestion: invent new word
games involving letter patterns in the above format.
One interesting use for PATTERN is to generate lists of words in which *no*
letters repeat. Typing PATTERN 1234567 generates a list of 7648 seven-letter
words in which each word has seven different letters.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Still(!) $2.00 to register the *entire* WORDY package.
M\Cooper
3425 Chestnut Ridge Rd.
Grantsville, MD 21536-9801
--------------------------
E-mail: thegrendel@aol.com
WORDY (pd) is *not* a trademark, and may not be trademarked. It is in the
Public Domain, which means it belongs to everyone.